package string;
/**
 * int length()
 * 返回当前字符串的长度(字符个数)
 * */
public class LengthDemo {
    public static void main(String[] args) {
        String str = "我爱Java!";
        int lem = str.length();
        System.out.println(lem);
    }
}
